@import url('./variables.less');

@font-face {
  font-family: "poppins";
  src: url('./font/Poppins-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "poppins";
  src: url('./font/Poppins-Italic.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: "poppins";
  src: url('./font/Poppins-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "poppins";
  src: url('./font/Poppins-Light.ttf') format('truetype');
  font-weight: light;
  font-style: normal;
}

@font-face {
  font-family: "poppins";
  src: url('./font/Poppins-LightItalic.ttf') format('truetype');
  font-weight: light;
  font-style: italic;
}

*,
::after,
::before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box
}

:root {
  font-family: poppins, system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color: @dark;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  --bs-border-color: @gray-2;
  --bs-link-color: #515866;
  --bs-nav-link-color: #86909c;
  --bs-text-color: #666f80;
  --bs-theme-color: #5372e3;
  --bs-light-color: rgb(82, 131, 209);
  --bs-dark-color: #333;
  --bs-gray-color: @gray-4;
  --bs-bg-color: #fafbfc;
  --bs-shadow-color: #0091be;
  --bs-shadow-opacity: .21;
  --bs-warn-color: #ef4136;
  --bs-success-color: #52c41d;
  --border-radius-base:4px;
  --plyr-color-main: var(--bs-theme-color);
  --plyr-main-border: var(--bs-border-color);
  --plyr-audio-controls-background: var(--bs-bg-color);
  --plyr-audio-control-color: var(--bs-gray-color);

  ::-webkit-scrollbar {
    width: 10px;
    height: 12px;
    background: var(--bs-gray-color);
  }

  ::-webkit-scrollbar-thumb {
    border-radius: 2px;
    background: var(--bs-theme-color);
  }
}

::selection {
  background: var(--bs-theme-color);
  color: var(--bs-bg-color);
}

body,
html {
  margin: 0;
  padding: 0;
  background: var(--bs-bg-color);
  color: var(--bs-text-color);
  overflow-y: auto;
  overflow-x: hidden;
}

ul,
ol,
li,
dl,
dt,
dd,
p,
h1,
h2,
h3,
h4,
h5,
h6,
figure {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--bs-link-color);
  text-decoration: none;
  transition: color .3s;

  &:hover {
    color: var(--bs-theme-color);
  }
}

img {
  max-width: 100%;
}

.img_box {
  position: relative;
  overflow: hidden;

  img {
    transition: all .6s;
    max-width: 100%;
    width: 100%;
    vertical-align: middle;
  }

  figcaption {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    visibility: hidden;
    opacity: 0;
    transition: all .6s;
    overflow: hidden;

    &::before {
      content: '';
      display: block;
      width: 100%;
      height: 100%;
      position: absolute;
      left: 0;
      top: 0;
      background: var(--bs-theme-color);
      opacity: .85;
    }

    .iconfont {
      background: var(--bs-bg-color);
      width: 44px;
      height: 44px;
      border-radius: 50%;
      font-size: 20px;
      display: block;
      line-height: 44px;
      text-align: center;
      color: var(--bs-theme-color);
      transition: all .5s;
      transform: scale(10);
      transition-delay: .4s;
      opacity: 0
    }

    p {
      position: relative;

      a {
        display: inline-block;
        margin: 0 4px
      }

      ;
    }

    .brife {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      color: #fff;
      padding: 20px;
      transform: translateY(100%);
      transition: all .6s;
      background: linear-gradient(to bottom, rgba(28, 72, 222, 0), rgba(28, 72, 222, .5));

      p {
        color: rgba(255, 255, 255, .75);
        padding-top: 10px
      }
    }

    h3 {
      a {
        color: #fff;
        font-size: 18px;
        font-weight: 400
      }
    }
  }

  .no_img {
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 100%;
    text-align: center;
    background: var(--bs-border-color);
    color: var(--bs-nav-link-color);
    font-size: 12px;
    transition: all .6s;

    i {
      font-size: 32px;
    }
  }

  &:hover {
    img {
      transform: scale(1.1) rotateZ(2deg)
    }

    figcaption {
      opacity: 1;
      visibility: visible;
      transform: scale(1.1);

      .brife {
        transform: none;
        transition-delay: 0;
      }

      .iconfont {
        transform: none;
        opacity: 1;
        transition-delay: 0;

        &:hover {
          background: @gray-7;
          color: #fff;
          transition-delay: 0;
        }
      }
    }

  }
}


button {
  cursor: pointer;
  position: relative;
  transition: all .6s;
  overflow: hidden;
  border: none;
  background: 0 0;
  border: none;
  vertical-align: middle;
  padding: 0 1.8em;

  font-family: poppins, system-ui, Avenir, Helvetica, Arial, sans-serif;

  &::before {
    content: '';
    display: block;
    position: absolute;
    width: 0;
    height: 100%;
    left: 0;
    top: 0;
    transition: all .3s;
    transition-delay: .2s;
    opacity: 0;
    transform-origin: top left;
  }

  &:hover {
    &::before {
      opacity: 1;
      width: 100%;
      animation: pulse_black 1s infinite;
    }
  }

  &.middle {
    height: 42px;
    line-height: 42px;
    min-width: 150px;

    &.trans {
      background: 0 0;
      color: #dd2625;
      background: #fff;
      box-shadow: 0 5px 15px rgba(0, 0, 0, .05)
    }
  }

  &.semi {
    height: 36px;
    line-height: 36px;
    min-width: 120px;
  }

  &.blue {
    background: #1c48de;
    color: #fff;

    &::before {
      background: #01e0f6;
    }

    &:hover {
      color: #dd2625;
    }
  }

  &.dark {
    background: #111;
    color: #fff;

    &::before {
      background: #dd2625;
    }

    &:hover {
      color: #fff;
    }
  }

  &.theme {
    background: var(--bs-theme-color);
    color: var(--bs-bg-color);
    border: var(--bs-theme-color) 1px solid;

    &::before {
      background: var(--bs-bg-color);
      ;
    }

    &:hover {
      color: var(--bs-theme-color);
    }
  }

  &.lightblue {
    background: #dd2625;
    color: #fff;

    &::before {
      background: #1c48de;
    }

    &:hover {
      color: #01e0f6;
    }
  }

  &.light {
    background: #fff;
    color: #111;
    box-shadow: 0 0 1px #eee;

    &::before {
      background: #111;
    }

    &:hover {
      color: #fff;
    }
  }

  &.border {
    background: 0 0;
    color: #fff;
    border: #fff 1px solid;
    height: 44px;
    line-height: 44px;

    &:hover {
      color: #fff;
      border-color: #01e0f6;
    }

    &:before {
      background: #dd2625;
      background: -moz-linear-gradient(bottom, #1c48de 0, #01e0f6 100%);
      background: -webkit-linear-gradient(bottom, #1c48de 0, #01e0f6 100%);
      background: linear-gradient(45deg, #1c48de 0, #01e0f6 100%);
      filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#1c48de', endColorstr='#01e0f6', GradientType=1)
    }
  }

  i,
  span {
    vertical-align: middle;
    position: relative;
    display: inline-block;
  }

  span {
    z-index: 2
  }
}

.loading {
  text-align: center;
  margin: 0 auto;
}

.pages {
  display: flex;
  justify-content: center;

  ul {
    display: flex;

    li {
      padding: 0 4px;

      a {
        display: block;
        line-height: 32px;
        padding: 0 10px;
        border: var(--bs-border-color) 1px solid;
        min-width: 32px;
        text-align: center;
        border-radius: 3px;
        transition: border-color .6s;

        &.disabled {
          background: var(--bs-border-color);
          color: var(--bs-gray-color);
        }

        &.current {
          background: var(--bs-theme-color);
          color: #fff;
        }
      }
    }
  }
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes flips {
  0% {
    transform: rotateY(0deg);
  }

  50% {
    transform: rotateY(360deg);
  }

  100% {
    transform: rotateY(360deg);
  }
}


@keyframes process {
  0% {
    width: 0
  }

  100% {
    width: 100%
  }
}


@keyframes flip {
  0% {
    transform: rotateZ(0deg);
  }

  50% {
    transform: rotateY(180deg);
  }

  100% {
    transform: rotateZ(0deg);
  }
}

input,
textarea {
  border-radius: 4px;
  outline: none;
  font-family: poppins, system-ui, Avenir, Helvetica, Arial, sans-serif;
}

.vInput {
  height: 38px;
  line-height: 38px;
  color: #7C8EA0;
  padding: 0 .5em;
  font-size: 14px;
  background: transparent;
  width: 100%;

  &:focus {
    border-color: #BDC5C9;
  }
}

.vButton {
  height: 38px;
  line-height: 38px;
  border: #dce1e4 1px solid;
  color: #7C8EA0;
  border-radius: 4px;
  padding: 0 .5em;
  font-size: 14px;
  padding: 0 1.8em;

  &.primary {
    background: var(--bs-theme-color);
    border-color: transparent;
    color: #fff;
  }

  &.block {
    width: 100%;
  }
}

.vTitle {
  font-weight: 600;
  color: var(--bs-dark-color);
  display: flex;
  padding: 14px 0;

  span {
    padding-left: 14px;
    border-left: var(--bs-theme-color) 4px solid;
    line-height: 1em;
  }
}

.vForm {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px;

  .inputBox {
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, .4);
    backdrop-filter: blur(2px);
  }

  .vInput {
    padding: 0 10px;
    font-size: 14px;

    &::placeholder {
      color: var(--bs-gray-color);
    }
  }

  .label {
    font-size: 14px;
    font-weight: bold;
    padding: 10px 0;

    .required {
      color: #dd2625;
    }
  }

  .toggleBox {
    display: flex;

    .box {
      display: flex;
      position: relative;
      border: var(--bs-border-color) 1px solid;
      border-radius: 4px;
      overflow: hidden;

      .slider {
        position: absolute;
        width: 66px;
        height: 34px;
        background: var(--bs-theme-color);
        left: 0;
        top: 0;
        transition: all .3s;
      }

      .block {
        position: relative;
        width: 66px;
        height: 34px;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        cursor: pointer;

        &.active {
          color: #fff;
        }
      }
    }
  }

  .buttonGroup {
    display: flex;
  }
}

.highcharts-credits {
  display: none !important;
}


.container {
  position: relative;
}